import ajax from "@/utils/request";

// 获取平台属性的数据
export const reqAttrData = (category1Id, category2Id, category3Id) =>
  ajax.get(
    `/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`
  );

// 添加平台属性
export const reqAddOrEditAttr = (data) =>
  ajax.post(`/admin/product/saveAttrInfo`, data)

// 删除平台属性的
export const reqDeleteAttr = (id) =>
  ajax.delete(`/admin/product/deleteAttr/${id}`);
